package com.tmeone.erpone.service.impl;

import com.tmeone.erpone.entity.TShelves;
import com.tmeone.erpone.mapper.TShelvesMapper;
import com.tmeone.erpone.service.ITShelvesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wzy
 * @since 2021-04-19
 */
@Service
public class TShelvesServiceImpl extends ServiceImpl<TShelvesMapper, TShelves> implements ITShelvesService {
    @Autowired
    private TShelvesMapper tShelvesMapper;
    @Override
    public TShelves updateShelves(String status, String shelvesNo) {
        return tShelvesMapper.updateShelves(status,shelvesNo);
    }

    @Override
    public TShelves updateShelvesById(String mainProduct, int totalNum, String remark, String sId, String cId) {
        return tShelvesMapper.updateShelvesById(mainProduct,totalNum,remark,sId,cId);
    }


    @Autowired
    private TShelvesMapper shelvesMapper;

    @Override
    public List<TShelves> selectShelvesByWareId(String wareId) {
        return shelvesMapper.selectShelvesByWareId(wareId);
    }
}
